<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016-03-22
 * Time: 9:56
 */
function __autoload($class) {
}

function my_loader() {
}

function your_loader() {
}

var_dump ( spl_autoload_functions () );
echo '<br/>';

spl_autoload_register ( 'my_loader' );
spl_autoload_register ( 'your_loader' );

var_dump ( spl_autoload_functions () );

if(!function_exists('classAutoLoader')){
    function classAutoLoader($class){
        $class=strtolower($class);
        $classFile=$_SERVER['DOCUMENT_ROOT'].'/include/class/'.$class.'.class.php';
        if(is_file($classFile)&&!class_exists($class)) include $classFile;
    }
}
spl_autoload_register('classAutoLoader');

var_dump ( spl_autoload_functions () );
echo '<br/>';


var_dump(PHP_SAPI === 'cli' OR defined('STDIN'));


